Repository navigation
Fix a short frame crash and some response bytes in the VT server - #978
Open
sujandumaru wants to merge 1 commit into
Open
sujandumaru wants to merge 1 commit into
sujandumaru wants to merge 1 commit into
Conversation
|
gunicsba
reviewed
Nov 26, 2026
gunicsba
left a comment
Member
There was a problem hiding this comment.
Thanks, I checked this against ISO 11783-6:2018, and the changes match:
- F.49 Execute Macro response: error codes in byte 3. F.63 Execute Extended Macro response: error codes in byte 4.
- F.2 Hide/Show Object: byte 4 is only 0 = Hide or 1 = Show, so other values get Command error (F.3 byte 5 bit 2).
- F.14 Change Child Location: "255 = a + 128 pixel move", which needs the
int16_toffset. - D.11 Get Supported WideChars response: Any other error is bit 4, and the number of ranges is "set to 0 if Error codes is not equal to 0".
- C.2.5: after an error the VT should delete the pool and inform the operator of the suspension, which
remove_object_pool()does for an End of Object Pool without a pool.
One question inline about the error code of that response.
🤖 Generated with Claude Code
| LOG_WARNING("[VT Server]: End of object pool message ignored - no object pools are loaded for the source control function"); | ||
| LOG_WARNING("[VT Server]: End of object pool message rejected - no object pools are loaded for the source control function"); | ||
| remove_object_pool(managedWorkingSet); | ||
| send_end_of_object_pool_response(false, NULL_OBJECT_ID, NULL_OBJECT_ID, get_bit(static_cast<std::uint8_t>(ObjectPoolErrorBit::AnyOtherError)), message.get_source_control_function(), false, &pendingObjectPoolDeletions.back().failure); |
Member
There was a problem hiding this comment.
The pool is deleted here, so should byte 7 also have bit 3 "object pool was deleted from volatile memory" (C.2.5), like the dropped transfer case just above? Right now only bit 2 "any other error" is set, so the client isn't told that the pool is gone.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



A 6 byte Working Set Member frame starting with 0xB3 could crash
VirtualTerminalServer. Only Change String Value is allowed to be that short, but the check did not look at the PGN. It does now.There was also few places where the server did not follow ISO 11783:
object_pool_deleted()andsuspend_working_set()offset_all_children_with_id()takesint16_toffsets now, as +128 does not fit inint8_t.Added unit tests for these.